package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author YuQing
 * @date 2022/1/8 17:12
 */
@Data
public class JsCourseClass {
    private Integer id;//主键id
    private String name;//标签标题
    private Integer type;//分类状态
    private Integer sort;//排序
    private Integer parentId;//上级分类id，0为最高，1为二级分类
    private String createId;//创建人
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private String createDate;//创建时间
    private String updateId;//更新人
    private String updateDate;//更新时间
    private String remarks;//备注
    private Integer hits;//点赞量
    private Integer collect_num;//收藏量
    private String coursePrimary;//搜索关键词
    private String courseName;//课程名称

    public JsCourseClass() {
    }

    public JsCourseClass(Integer id, String name, Integer type, Integer sort, Integer parentId, String createId, String createDate, String updateId, String updateDate, String remarks, Integer hits, Integer collect_num, String coursePrimary, String courseName) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.sort = sort;
        this.parentId = parentId;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.remarks = remarks;
        this.hits = hits;
        this.collect_num = collect_num;
        this.coursePrimary = coursePrimary;
        this.courseName = courseName;
    }

    //有参构造
    public JsCourseClass(Integer id, String name, Integer parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    public Integer getCollect_num() {
        return collect_num;
    }

    public void setCollect_num(Integer collect_num) {
        this.collect_num = collect_num;
    }

    public String getCoursePrimary() {
        return coursePrimary;
    }

    public void setCoursePrimary(String coursePrimary) {
        this.coursePrimary = coursePrimary;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
}
